import request from '@/utils/request'

export default {
  /**
   * 获取车队列表详情
   * @param id
   * @returns {AxiosPromise}
   */
  findAll() {
    return request({
      url: `/base/goods/pd-fleet/`,
      method: 'get',
      params: {
        'agencyId': null,
        'ids': null
      }
    })
  },
  /**
   * 车队添加
   * @param data
   * @returns {AxiosPromise}
   */
  addFleet(data) {
    return request({
      url: `/base/goods/pd-fleet/`,
      method: 'post',
      data: data
    })
  }
}
